package com.lwq.view;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;

public class FrameView extends JFrame
{
	public FrameView(String lable,int width,int height){
		super(lable);
		super.setEnabled(true);
		super.setVisible(true);
		super.setBounds(100, 100, width, height);
		super.addWindowListener(new WindowAdapter()
		{
			public void windowClosing(WindowEvent evt)
			{
				FrameView.this.setVisible(false); 
				FrameView.this.dispose(); 
				System.exit(0); 
			}
		});
	}
}
